import { Select } from 'element-ui';
import { createWidgetConfig } from './config';

const widgetConfig = createWidgetConfig();

widgetConfig.registry([
  {
    key: 'text',
    label: '文本',
    preview() {
      return <label>预览文本</label>;
    },
    render() {
      return <label>渲染文本</label>;
    },
  },
  {
    key: 'select',
    label: '下拉框',
    preview() {
      return <Select value=""></Select>;
    },
    render() {
      return (
        <label>
          <Select value="121"></Select>
        </label>
      );
    },
  },
]);

export default widgetConfig;
